package com.demo2do.fms.admin.dao.business;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.business.shipment.ShipmentLine;

/**
 * 
 * @author wangliwang
 *
 */
@Dao("hibernate")
public interface ShipmentLineDao {
    
    /**
     * 
     * @param loadNumber
     * @return
     */
    @Query("FROM ShipmentLine WHERE disabled = false AND shipmentNumber = :loadNumber")
    public ShipmentLine load(@Variable("loadNumber") String loadNumber);
    
}
